var TBackgroundLayer = cc.Layer.extend({

    _sptBg : null,
    
    ctor : function(number){
        this._super();
        this.initBackground();
        this.initContent(number);
    },

    initBackground : function(){
    	this._sptBg = new cc.Sprite(res.cm_menu_png, cc.rect(0, 0, 640, 960));
    	
        this._sptBg.attr({
            anchorX : 1,
            anchorY : 1,
            x: 640,
            y: 960
        });
        this.addChild(this._sptBg,0);
    },
    
    initContent : function(number){
    	switch(number){
    	case 0:{
    		Image = new cc.Sprite(res.UiModule_png,cc.rect(0, 0, 640, 200));
    		Image.attr({
    			anchorX : 0,
    			anchorY : 0.5,
    			x: 0,
    			y: 750
    		});
    		this.addChild(Image,1);
    		
    		Image = new cc.Sprite("res/thanks.png",cc.rect(0, 0, 200, 200));
    		Image.attr({
    			anchorX : 0,
    			anchorY : 0.5,
    			x: 35,
    			y: 760
    		});
    		Image.setScale(150/200, 150/200);
    		this.addChild(Image,2);
    		
    		Text = new cc.LabelTTF("BO\n参与技术选型、人物设计、\n前期测试等","res/font/Microsoft Yahei.ttf", 30);
    		Text.attr({
    			anchorX : 0,
    			anchorY : 1,
    			x: 200,
    			y: 840,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text, 2);
    		
    		Image = new cc.Sprite(res.UiModule_png,cc.rect(0, 0, 640, 200));
    		Image.attr({
    			anchorX : 0,
    			anchorY : 0.5,
    			x: 0,
    			y: 550
    		});
    		this.addChild(Image,1);

    		Image = new cc.Sprite("res/thanks.png",cc.rect(200, 0, 200, 200));
    		Image.attr({
    			anchorX : 0,
    			anchorY : 0.5,
    			x: 35,
    			y: 560
    		});
    		Image.setScale(150/200, 150/200);
    		this.addChild(Image,2);

    		Text = new cc.LabelTTF("ft1717492\n参与前期测试","res/font/Microsoft Yahei.ttf", 30);
    		Text.attr({
    			anchorX : 0,
    			anchorY : 1,
    			x: 200,
    			y: 640,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text, 2);
    		
    		Image = new cc.Sprite(res.UiModule_png,cc.rect(0, 0, 640, 200));
    		Image.attr({
    			anchorX : 0,
    			anchorY : 0.5,
    			x: 0,
    			y: 350
    		});
    		this.addChild(Image,1);

    		Image = new cc.Sprite("res/thanks.png",cc.rect(0, 200, 200, 200));
    		Image.attr({
    			anchorX : 0,
    			anchorY : 0.5,
    			x: 35,
    			y: 360
    		});
    		Image.setScale(150/200, 150/200);
    		this.addChild(Image,2);

    		Text = new cc.LabelTTF("sigh\n参与前期测试","res/font/Microsoft Yahei.ttf", 30);
    		Text.attr({
    			anchorX : 0,
    			anchorY : 1,
    			x: 200,
    			y: 440,
    			color : cc.color(0, 0, 0)
    		});
    		this.addChild(Text, 2);
    		break;
    	}
    	}
    }
});